package com.muyan.common.bean;

public class Three<A, B, C> extends Two<A, B> {

    protected C third;

    public Three() {
    }

    public Three(A first, B second, C third) {
        super(first, second);
        this.third = third;
    }

    public C getThird() {
        return third;
    }

    public void setThird(C third) {
        this.third = third;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Three{");
        sb.append("first=").append(first);
        sb.append(", second=").append(second);
        sb.append(", third=").append(third);
        sb.append('}');
        return sb.toString();
    }
}
